<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\Orders
 *
 * @property int $id 自增id
 * @property int $user_id 用户id
 * @property int $activity_id 活动id
 * @property string $order_num 订单编号
 * @property float $m_amount 订单原总额
 * @property float $s_amount 订单实际总额
 * @property int $is_pay 是否已支付，0：未支付，1：已支付
 * @property string|null $pay_time 支付时间
 * @property string|null $pay_type 支付方式，有weixin、alipay、bank
 * @property string|null $note 备注
 * @property int $status 订单状态
 * @property string|null $deleted_at
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @method static bool|null forceDelete()
 * @method static \Illuminate\Database\Query\Builder|\App\Orders onlyTrashed()
 * @method static bool|null restore()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereActivityId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereIsPay($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereMAmount($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereNote($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereOrderNum($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders wherePayTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders wherePayType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereSAmount($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereUserId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Orders withTrashed()
 * @method static \Illuminate\Database\Query\Builder|\App\Orders withoutTrashed()
 * @mixin \Eloquent
 * @property int $vip_package_id vip套餐id
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereVipPackageId($value)
 * @property string|null $type 订单类型 activity：活动订单 vip：vip订单
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereType($value)
 * @property int $vip_package_num 套餐数量
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereVipPackageNum($value)
 * @property int $is_refund 是否退款 0：未退款 1：已退款 2：退款失败
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereIsRefund($value)
 */
class Orders extends Model
{
    protected $table = "orders";
    use SoftDeletes;
}
